var TreeView = new Object();

TreeView.showNode = function (parentNodeId, childNodeId, collapsedNodeClass, expandedNodeClass) {
	var parentNode = document.getElementById(parentNodeId);
	var childNode = document.getElementById(childNodeId);
	if (parentNode && childNode) {
		if (childNode.style.display == "none") {
			parentNode.className = expandedNodeClass;
			childNode.style.display = "block";
		} else {
			parentNode.className = collapsedNodeClass;
			childNode.style.display = "none";
		}
	}
};